/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/16/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */

package com.application.yfappointtask.struts.form;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yfappointtask.entity.YfAppointTask;
import java.util.Date;

/**
 * 
 * Description: YfAppointTaskForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/16/2012 .
 * 
 */
public class YfAppointTaskForm extends ActionForm {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public YfAppointTaskForm() {

	}

	private String id;

	private String taskBelong;

	private String taskContent;

	private Date completeDate;

	private String opinion;

	private String exeResult;

	private Long evaluate;

	private String remark;

	private Long auditStatus;

	private String processId;

	private String org;

	private String operateid;

	private Date createDate;

	private String projectName;

	private String projectOrg;

	private Long projectType;

	private String examineFlag;

	private String examineOption;

	private String workItemId;
	private String ids;

	private String examineValue;
	private String completeDateStr;

	private String rname;

	private String rname2;
	
	public String getRname2() {
		return rname2;
	}

	public void setRname2(String rname2) {
		this.rname2 = rname2;
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	/**
	 * @return Returns the CompleteDate.
	 */
	public String getCompleteDateStr() {
		String re = "";
		if (this.completeDate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.completeDate);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return re;
	}

	/**
	 * @param ${field.propertyName}
	 *            Set the ${field.propertyName}.
	 */
	public void setCompleteDateStr(String completeDateStr) {
		this.completeDateStr = completeDateStr;
		if (this.completeDateStr != null && !"".equals(this.completeDateStr)) {
			try {
				this.completeDate = StringUtil
						.stringToDate(this.completeDateStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * @return Returns the Id
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * @param id
	 *            Set the id.
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return Returns the TaskBelong
	 */
	public String getTaskBelong() {
		return this.taskBelong;
	}

	/**
	 * @param taskBelong
	 *            Set the taskBelong.
	 */
	public void setTaskBelong(String taskBelong) {
		this.taskBelong = taskBelong;
	}

	/**
	 * @return Returns the TaskContent
	 */
	public String getTaskContent() {
		return this.taskContent;
	}

	/**
	 * @param taskContent
	 *            Set the taskContent.
	 */
	public void setTaskContent(String taskContent) {
		this.taskContent = taskContent;
	}

	/**
	 * @return Returns the CompleteDate
	 */
	public Date getCompleteDate() {
		return this.completeDate;
	}

	/**
	 * @param completeDate
	 *            Set the completeDate.
	 */
	public void setCompleteDate(Date completeDate) {
		this.completeDate = completeDate;
	}

	/**
	 * @return Returns the Opinion
	 */
	public String getOpinion() {
		return this.opinion;
	}

	/**
	 * @param opinion
	 *            Set the opinion.
	 */
	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	/**
	 * @return Returns the ExeResult
	 */
	public String getExeResult() {
		return this.exeResult;
	}

	/**
	 * @param exeResult
	 *            Set the exeResult.
	 */
	public void setExeResult(String exeResult) {
		this.exeResult = exeResult;
	}

	/**
	 * @return Returns the Evaluate
	 */
	public Long getEvaluate() {
		return this.evaluate;
	}

	/**
	 * @param evaluate
	 *            Set the evaluate.
	 */
	public void setEvaluate(Long evaluate) {
		this.evaluate = evaluate;
	}

	/**
	 * @return Returns the Remark
	 */
	public String getRemark() {
		return this.remark;
	}

	/**
	 * @param remark
	 *            Set the remark.
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return Returns the AuditStatus
	 */
	public Long getAuditStatus() {
		return this.auditStatus;
	}

	/**
	 * @param auditStatus
	 *            Set the auditStatus.
	 */
	public void setAuditStatus(Long auditStatus) {
		this.auditStatus = auditStatus;
	}

	/**
	 * @return Returns the ProcessId
	 */
	public String getProcessId() {
		return this.processId;
	}

	/**
	 * @param processId
	 *            Set the processId.
	 */
	public void setProcessId(String processId) {
		this.processId = processId;
	}

	/**
	 * @return Returns the Org
	 */
	public String getOrg() {
		return this.org;
	}

	/**
	 * @param org
	 *            Set the org.
	 */
	public void setOrg(String org) {
		this.org = org;
	}

	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid() {
		return this.operateid;
	}

	/**
	 * @param operateid
	 *            Set the operateid.
	 */
	public void setOperateid(String operateid) {
		this.operateid = operateid;
	}

	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * @param createDate
	 *            Set the createDate.
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	private List<YfAppointTask> yfAppointTaskList;

	/**
	 * @return the yfappointtaskformList
	 */
	public List<YfAppointTask> getYfAppointTaskList() {
		return yfAppointTaskList;
	}

	/**
	 * @param yfAppointTaskList
	 *            the yfappointtaskformList to set
	 */
	public void setYfAppointTaskList(List<YfAppointTask> yfAppointTaskList) {
		this.yfAppointTaskList = yfAppointTaskList;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectOrg() {
		return projectOrg;
	}

	public void setProjectOrg(String projectOrg) {
		this.projectOrg = projectOrg;
	}

	public Long getProjectType() {
		return projectType;
	}

	public void setProjectType(Long projectType) {
		this.projectType = projectType;
	}

	public String getExamineFlag() {
		return examineFlag;
	}

	public void setExamineFlag(String examineFlag) {
		this.examineFlag = examineFlag;
	}

	public String getExamineOption() {
		return examineOption;
	}

	public void setExamineOption(String examineOption) {
		this.examineOption = examineOption;
	}

	public String getWorkItemId() {
		return workItemId;
	}

	public void setWorkItemId(String workItemId) {
		this.workItemId = workItemId;
	}

	public String getExamineValue() {
		return examineValue;
	}

	public void setExamineValue(String examineValue) {
		this.examineValue = examineValue;
	}
}
